package com.mall.product.dao;

import com.mall.common.dao.BaseDao;
import com.mall.product.entity.AttrAttrgroupRelationEntity;
import com.mall.product.vo.AttrGroupRelationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author xjc xjc@163.com
 * @since 1.0.0 2022-07-17
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseDao<AttrAttrgroupRelationEntity> {

    void deleteByParams(@Param("entitys") List<AttrGroupRelationVo> collect);

    List<AttrAttrgroupRelationEntity> listByAttrGroupId(@Param("attrGroupIds") List<Long> attrGroupIds);
}